#set(title="用户注册")
#@layout()

#define body()
<div style="height: 30px"></div>
<div class="register-container">
    <div class="layui-form" action="">
        <div class="layui-form-item">

            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline input-width">
                <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名"
                       autocomplete="off"
                       class="layui-input" id="username">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span id="username-status"><i class="layui-icon">&#xe615;</i></span>
                <a class="a-left" lay-filter="checkUser">查看用户名</a>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-inline input-width">
                <input type="password" name="pwd" required lay-verify="required" placeholder="请输入密码" autocomplete="off"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">再次输入</label>
            <div class="layui-input-inline input-width">
                <input type="password" name="salt" required lay-verify="required" placeholder="请输入密码" autocomplete="off"
                       class="layui-input">
            </div>
        </div>

        #include("/_view/common/component/captcha.html")
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="registerSubmit">立即注册</button>
            </div>
        </div>
    </div>
</div>
#end

#define css()
<link rel="stylesheet" href="/assets/css/register.css">
#end

#define js()
<script type="text/javascript" src="/assets/js/register.js"></script>
#end